package code.starivan.others;

/**
 * Created by Ivan on 2015/9/8.
 */
public class TreeToSequence {
    public String toSequence(TreeNode root) {
        // write code here
        if(root==null){
            return "";
        }

        return  "("+toSequence(root.left)+toSequence(root.right)+")";
    }
}